//
//  XFNetworkTools.h
//  SinaBlog_OC
//
//  Created by macs on 15/11/17.
//  Copyright © 2015年 BlackTail. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
typedef enum : NSUInteger {
  HTTPMethodPOST,
  HTTPMethodGET,
} HTTPMethod;
@interface XFNetworkTools : AFHTTPSessionManager

+ (instancetype)shareNetWorkTools;
/**
 *  封装网络,隔离 AFN 框架
 *
 *  @param httpMethod 请求类型
 *  @param urlString  接口
 *  @param parameters 参数
 *  @param finished   完成回调
 */
- (void)requestJsonDictWithHttpMothod:(HTTPMethod)httpMethod
                            Urlstring:(NSString *)urlString
                           Parameters:(NSDictionary *)parameters
                          AndFinished:(Finished)finished;

- (void)uploadImageWithUrlstring:(NSString *)urlString
                      Parameters:(NSDictionary *)parameters
                       ImageData:(NSData *)imageData
                     AndFinished:(Finished)finished;
@end
